package com.kk.command;

public class Client {
    public static void main(String[] args) {
        DvdReceiver dvdReceiver = new DvdReceiver();
        LightReceiver lightReceiver = new LightReceiver();
        TvReceiver tvReceiver = new TvReceiver();

        /**
         * 数组中：
         * 位置0是DVD
         * 位置1是Light
         * 位置2是TV
         */
        RemoteController remoteController = new RemoteController();
        System.out.println("================按钮开================");
        remoteController.turnOnButton(0);
        remoteController.turnOnButton(1);
        remoteController.turnOnButton(2);

        System.out.println("================按钮关闭================");
        remoteController.turnOffButton(0);
        remoteController.turnOffButton(1);
        remoteController.turnOffButton(2);

        System.out.println("================按钮撤销================");
        remoteController.undoButton();
    }
}
